
package com.wiesloch.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.wiesloch.po.User;
import com.wiesloch.service.UserService;

/**
 * <p>ClassName:UserController</p>
 * <p>Description:</p>
 * <p> E-mail:jintao_iknow@163.com </p>
 * Date:     2016年5月10日 下午4:32:25 <br/>
 * @author   tao95
 * @version  1.0
 * @since    JDK 1.7
 *
 */
@Controller
@RequestMapping("/user")
public class UserController {

	@Autowired
	private UserService userService;
	
	@RequestMapping("/login")
	public ModelAndView login(HttpServletRequest request) throws Exception{
		
		String account = request.getParameter("account");
		User user = (User) userService.selectUser(account);
		System.out.println(user);
		return null;
	}
}
